Update all internal users of alternative button order
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Jan 2014 16:41:03 +0000 (11:41 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Jan 2014 22:52:07 +0000 (17:52 -0500)
We'll keep this code around for now to not regress
on Windows, but avoid deprecation warnings.

gtk/gtkfilechooserbutton.c
gtk/gtkfilechooserdefault.c
gtk/gtkfontchooserdialog.c
gtk/gtkmessagedialog.c
gtk/gtkmountoperation.c
gtk/gtkpagesetupunixdialog.c
gtk/gtkprintunixdialog.c

index 3cd560fd1a7a076141ea111c0ac05aecf0b626d3..21e19eb8ab663871ea7679e1878e84b5912ca11f 100644 (file)
@@ -810,10 +810,12 @@ gtk_file_chooser_button_constructor (GType                  type,
 
       gtk_dialog_set_default_response (GTK_DIALOG (priv->dialog),
                                       GTK_RESPONSE_ACCEPT);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
       gtk_dialog_set_alternative_button_order (GTK_DIALOG (priv->dialog),
                                               GTK_RESPONSE_ACCEPT,
                                               GTK_RESPONSE_CANCEL,
                                               -1);
+G_GNUC_END_IGNORE_DEPRECATIONS
 
       gtk_file_chooser_button_set_title (button, _(DEFAULT_TITLE));
     }
index c7529849b4bb5a30682b2c8f47f7d676629ac65f..2095d1fdf4db44508b1b6f3da87ac7e7c179d3a1 100644 (file)
@@ -5442,10 +5442,12 @@ confirm_dialog_should_accept_filename (GtkFileChooserDefault *impl,
 
   gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"), GTK_RESPONSE_CANCEL);
   add_custom_button_to_dialog (GTK_DIALOG (dialog), _("_Replace"), GTK_RESPONSE_ACCEPT);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
                                            GTK_RESPONSE_ACCEPT,
                                            GTK_RESPONSE_CANCEL,
                                            -1);
+G_GNUC_END_IGNORE_DEPRECATIONS
   gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
 
   if (gtk_window_has_group (toplevel))
index 8627fe5c5f29b24b8ddf309f34e8b24546510af9..124fb10b1b51e398609e9d52e4c74ad78d82743d 100644 (file)
@@ -151,11 +151,12 @@ gtk_font_chooser_dialog_init (GtkFontChooserDialog *fontchooserdiag)
   priv = fontchooserdiag->priv;
 
   gtk_widget_init_template (GTK_WIDGET (fontchooserdiag));
-
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gtk_dialog_set_alternative_button_order (GTK_DIALOG (fontchooserdiag),
                                            GTK_RESPONSE_OK,
                                            GTK_RESPONSE_CANCEL,
                                            -1);
+G_GNUC_END_IGNORE_DEPRECATIONS
 
   _gtk_font_chooser_set_delegate (GTK_FONT_CHOOSER (fontchooserdiag),
                                   GTK_FONT_CHOOSER (priv->fontchooser));
index 9dfd7eca7e568eda084c5a4a6590e2ed959a9ab0..3eddff6e3010a8f597219fb614f0f405e1352f2d 100644 (file)
@@ -899,10 +899,12 @@ gtk_message_dialog_add_buttons (GtkMessageDialog* message_dialog,
       gtk_dialog_add_button (dialog,
                              _("_Yes"),
                              GTK_RESPONSE_YES);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
       gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
                                               GTK_RESPONSE_YES,
                                               GTK_RESPONSE_NO,
                                               -1);
+G_GNUC_END_IGNORE_DEPRECATIONS
       break;
 
     case GTK_BUTTONS_OK_CANCEL:
@@ -912,10 +914,12 @@ gtk_message_dialog_add_buttons (GtkMessageDialog* message_dialog,
       gtk_dialog_add_button (dialog,
                              _("_OK"),
                              GTK_RESPONSE_OK);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
       gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
                                               GTK_RESPONSE_OK,
                                               GTK_RESPONSE_CANCEL,
                                               -1);
+G_GNUC_END_IGNORE_DEPRECATIONS
       break;
       
     default:
index 87c7479e3e71af2e6dd0ba22fa75acb7286ce915..850ac821e18ff4a70e6a9559c7938791ee4a90cd 100644 (file)
@@ -532,11 +532,12 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                           _("Co_nnect"), GTK_RESPONSE_OK,
                           NULL);
   gtk_dialog_set_default_response (dialog, GTK_RESPONSE_OK);
-
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gtk_dialog_set_alternative_button_order (dialog,
                                            GTK_RESPONSE_OK,
                                            GTK_RESPONSE_CANCEL,
                                            -1);
+G_GNUC_END_IGNORE_DEPRECATIONS
 
   /* Build contents */
   hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
index 00f74b3cef5ae4bd248e12fb838ca9b16e15dfa4..4288b8d9c5719a9eb99d239678f9296678a4d6d1 100644 (file)
@@ -213,11 +213,12 @@ gtk_page_setup_unix_dialog_init (GtkPageSetupUnixDialog *dialog)
   /* Load data */
   _gtk_print_load_custom_papers (priv->custom_paper_list);
   load_print_backends (dialog);
-
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
                                            GTK_RESPONSE_OK,
                                            GTK_RESPONSE_CANCEL,
                                            -1);
+G_GNUC_END_IGNORE_DEPRECATIONS
 }
 
 static void
index 763775c54726eabc465174f5ac86ae7ce06686be..1bc7617268d915a53299b2d5a0cc301dc32fc19a 100644 (file)
@@ -684,10 +684,12 @@ error_dialogs (GtkPrintUnixDialog *print_dialog,
                       add_custom_button_to_dialog (GTK_DIALOG (dialog),
                                                    _("_Replace"),
                                                    GTK_RESPONSE_ACCEPT);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
                       gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
                                                                GTK_RESPONSE_ACCEPT,
                                                                GTK_RESPONSE_CANCEL,
                                                                -1);
+G_GNUC_END_IGNORE_DEPRECATIONS
                       gtk_dialog_set_default_response (GTK_DIALOG (dialog),
                                                        GTK_RESPONSE_ACCEPT);